<sf-item-wrap [error]="error"
              [id]="id"
              [schema]="schema"
              [showError]="showError"
              [showTitle]="schema.title"
              [ui]="ui">
    <nz-upload
        (nzChange)="change($event)"
        [(nzFileList)]="fileList"
        [nzAccept]="ui.accept"
        [nzCustomRequest]="customRequest.bind(this)"
        [nzFileType]="ui.fileType"
        [nzFilter]="ui.filter"
        [nzMultiple]="!!ui.multiple"
        [nzPreview]="handlePreview.bind(this)"
        [nzRemove]="customRemove.bind(this)"
        class="upload-list-inline"
        nzListType="picture"
    >
        <button nz-button title="点击添加" type="button">
            <span><i nz-icon nzType="plus"></i></span>
        </button>
    </nz-upload>
</sf-item-wrap>

<div #attachmentList style="display: none;">
    <ng-container *ngFor="let file of fileList">
        <ng-container *ngIf="file.response?.picture">
            <img src="{{file.url}}">
        </ng-container>
    </ng-container>
</div>
